const mongoose = require("mongoose");

const mongoSchema = new mongoose.Schema({
    title: {
        type: String,
        required: true
    }, 
    details: {
        type: String,
        required: true
    },
    user: {
        type: String,
        required: true
    },
    date: {
        type: Date,
        default: Date.now
    }
});
mongoose.model("ideas", mongoSchema);
